home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
Grant's CGI Framework 1.0b14
/
Interface
/
WindowInt.h
< prev
Wrap
C/C++ Source or Header
|
1996-04-12
|
2KB
|
91 lines
#pragma once
/*****
*
* WindowInt.h
*
* This is a support file for "Grant's CGI Framework".
* Please see the license agreement that accompanies the distribution package
* for licensing details.
*
* Copyright ©1995,1996 by Grant Neufeld
* grant@acm.com
* http://arpp.carleton.ca/grant/
*
*****/
#include "MyConfiguration.h"
#if kCompileWithForeground
/*** CONSTANT DECLARATIONS ***/
#define kMinWindSize 48
/*** TYPE DECLARATIONS ***/
typedef enum
{
Window_UNKNOWN, /* unrecognized type of window */
Window_none, /* not a window */
Window_dlgModal, /* modal dialog */
Window_dlgMoveableModal, /* moveable modal dialog */
Window_dlgModeless, /* modeless dialog */
Window_about, /* about box */
Window_DA, /* desk accessory window */
Window_Application /* custom application window */
} window_type;
typedef struct
{
window_type wType;
Boolean scrollbars;
long data;
} windowInfo;
typedef windowInfo** windowInfoHdl;
/*** FUNCTION PROTOTYPES ***/
void WindowMenuClose ( short );
void WindowActivate ( WindowPtr, Boolean, const EventRecord * );
void WindowUpdate ( WindowPtr );
void WindowContentClick ( WindowPtr, const EventRecord *, Boolean * );
void WindowZoomBox ( WindowPtr, short );
void WindowGrow ( WindowPtr, Point );
Boolean WindowClose ( WindowPtr, short, Boolean );
Boolean WindowCloseAll ( Boolean );
window_type WindowType ( WindowPtr );
Boolean WindowNewSetInfo ( WindowPtr, window_type, Boolean, long );
windowInfoHdl WindowNewInfoHdl ( window_type, Boolean, long );
void WindowSetInfoHdl ( WindowPtr, windowInfoHdl );
windowInfoHdl WindowGetInfoHdl ( WindowPtr );
void WindowDisposeInfoHdl ( WindowPtr );
long WindowGetData ( WindowPtr );
/* for backwards compatibility. Avoid use */
Handle WindowGetDataHdl ( WindowPtr );
/*** EXTERNAL USER DEFINED FUNCTIONS ***/
p_export OSErr CustomCloseWindow ( WindowPtr );
p_export void CustomActivateWindow ( WindowPtr, Boolean );
p_export void CustomUpdateWindow ( WindowPtr );
p_export void CustomClickInWindow ( WindowPtr, Point, Boolean * );
#if !(kCompileWithout_MY_Names)
#define MyCloseWindow CustomCloseWindow
#define MyActivateWindow CustomActivateWindow
#define MyUpdateWindow CustomUpdateWindow
#define MyClickInWindow CustomClickInWindow
#endif
#endif /* kCompileWithForeground */
/***** EOF *****/